package com.baizhi.springboot.service.impl;

import com.baizhi.springboot.dao.PersonnelDao;
import com.baizhi.springboot.entity.Evection;
import com.baizhi.springboot.entity.Income;
import com.baizhi.springboot.entity.Leave;
import com.baizhi.springboot.service.PersonnelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PersonnelServiceImpl implements PersonnelService {
    @Autowired
    private PersonnelDao personnelDao;



    @Override
    public void insertLeave(Leave leave) {
        System.out.println(leave);
        personnelDao.insertLeave(leave);
    }

    @Override
    public void insertEvection(Evection evection) {
        personnelDao.insertEvection(evection);
    }

    @Override
    public void insertIncome(Income income) {
        personnelDao.insertIncome(income);
    }
}
